package com.naiterui.ehp.bs.cms.modules.devops.feign;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author luao
 * @date 2022/4/2 2:35 PM
 **/
@RequestMapping("inner")
@FeignClient(name = "ad", url = "${ehp.domain.ad}", configuration = FeignConfiguration.class)
public interface DoctorFeign {

    @PostMapping("version/saveVersion")
    void saveVersion(@RequestParam("appPlat") Integer appPlat, @RequestParam("lastVerNum") String lastVerNum,
                     @RequestParam("lastVerSize") String lastVerSize, @RequestParam("result") Integer result,
                     @RequestParam("forceVersion") String forceVersion, @RequestParam("content") String content,
                     @RequestParam("url") String url) throws BusinessException;

    @GetMapping("self/inspect/txFace")
    void txFaceCheck() throws BusinessException;
}
